import React, { Component } from 'react';
//导入css
import "./PicText.css"; 

class PicText extends Component {
  constructor(props){
      super(props);
      this.state = {
        className:props.kind ? ("pic_text "+props.kind):"pic_text vertical"
      }
  }
  render() {
    return (
      <div className={this.state.className}>
          <div>
              <img src={this.props.url} alt="" />
          </div>
          <div className="pic_title">{this.props.text}</div>
      </div>
    );
  }
}

export default PicText;